<template>
    <view @click="handleClick">
        <slot></slot>
    </view>
</template>

<script>
export default {
    props:{
        list:Array,
        index:String,
    },
    mounted(){
    //  console.log(this.list)
    //  console.log(this.index)
    },
    methods:{
        handleClick(){
             // 跳转页面并传参数
         getApp().globalData.imglist=this.list
         getApp().globalData.imgindex=this.index
            uni.navigateTo({
                url: '/pages/imgXq/index',
            });
        }
    }
}
</script>

<style lang="scss" scoped>
    
</style>